package com.ylq.service;

import com.ylq.entity.PageVo;
import com.ylq.entity.Roles;
import com.ylq.entity.Users;
import com.ylq.entity.UsersDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersService {
    public Users login(String un,String pwd);

    List<Roles> getRolesByUserName(String uname);

    int createUser(Users users);

    int updateUser(Users users);

    int resetPassword(Users users);

    int lockUser(Users users);

    int unLockUser(Users users);

    Users getUserByName(String loginName);

    int deleteUser(String uid);

    List<Users> getUsersLayUI(UsersDto dto);

    Users findById(String uId);
}
